<?php /* Smarty version 2.6.18, created on 2012-09-26 16:01:28
         compiled from modules/pizza-builder.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'modules/pizza-builder.tpl', 10, false),array('modifier', 'price_format', 'modules/pizza-builder.tpl', 20, false),array('modifier', 'explode', 'modules/pizza-builder.tpl', 69, false),)), $this); ?>
<script type="text/javascript" src="js/pizza-builder.js"></script>

<form id="pizzaform" method="post">
  <div id="pizza-builder">
    <h1>Pizza Builder</h1>
    <div class="pizza-sizes">
      <p><strong><?php echo $this->_tpl_vars['lang']['pizzabuilder_choose']; ?>
</strong></p>
      <?php $_from = $this->_tpl_vars['allpizzas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['pizzalist']):
?>
        <div>
          <label><?php echo ((is_array($_tmp=$this->_tpl_vars['pizzalist']['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
</label>
          <input class="calc"
            type="radio"
            onclick="reDirPizzaSize(<?php echo $this->_tpl_vars['pizzalist']['id']; ?>
)"
            name="size"
            value="<?php echo $this->_tpl_vars['pizzalist']['id']; ?>
"
            <?php if ($this->_tpl_vars['k'] == 0 || $_GET['id'] == $this->_tpl_vars['pizzalist']['id']): ?>
              checked="checked"
            <?php endif; ?>
          >
          <?php echo ((is_array($_tmp=$this->_tpl_vars['pizzalist']['price'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>
 
          <?php if ($this->_tpl_vars['pizzalist']['topping_price'] > 0): ?>
            <em>(+ <?php echo ((is_array($_tmp=$this->_tpl_vars['pizzalist']['topping_price'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>
 <?php echo $this->_tpl_vars['lang']['pizzabuilder_per_topping']; ?>
)</em> 
          <?php endif; ?>
          <?php if ($this->_tpl_vars['pizzalist']['free_topping'] == 1): ?>
            <span style="color:green"><?php echo $this->_tpl_vars['lang']['first_topping_free']; ?>
</span>
          <?php endif; ?>
        </div>
      <?php endforeach; endif; unset($_from); ?>
      <div>
        <label><?php echo $this->_tpl_vars['lang']['pizzabuilder_quantity_label']; ?>
</label>
        <input type="text" name="quantity" value="1" size="5">
      </div>
      <?php if ($this->_tpl_vars['who_for'] == 1): ?>
        <div>
          <label><?php echo $this->_tpl_vars['lang']['pizzabuilder_who_question']; ?>
</label>
          <input type="text" name="forwho" >
        </div>
      <?php endif; ?>
    </div>
  </div>
  <div id="pizza-container">
    <div id="pizza-tabs">
      <ul>
        <li><a href="#tabs-1"><?php echo $this->_tpl_vars['lang']['pizzabuilder_vegetable_label']; ?>
</a></li>
        <li><a href="#tabs-2"><?php echo $this->_tpl_vars['lang']['pizzabuilder_meat_label']; ?>
</a></li>
        <li><a href="#tabs-3"><?php echo $this->_tpl_vars['lang']['pizzabuilder_bread_label']; ?>
</a></li>
      </ul>
      <div id="tabs-1">
        <div style="min-height:350px"> <a name="tabs-1"></a>
          <p><strong><?php echo $this->_tpl_vars['lang']['pizzabuilder_additional_veg_toppings']; ?>
</strong></p>
          <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/pbToppings.tpl", 'smarty_include_vars' => array('toppings' => $this->_tpl_vars['pizza']['toppings'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
          <?php if ($this->_tpl_vars['pizza']['topoff']['0'] != ""): ?>
            <p><strong><?php echo $this->_tpl_vars['lang']['pizzabuilder_top_it_off_label']; ?>
</strong></p>
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'modules/pbToppings.tpl', 'smarty_include_vars' => array('toppings' => $this->_tpl_vars['pizza']['topoff'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
          <?php endif; ?> 
        </div>
      </div>
      <div id="tabs-2">
        <div style="min-height:350px"> <a name="tabs-2"></a>
          <p><strong><?php echo $this->_tpl_vars['lang']['pizzabuilder_additional_meat_toppings']; ?>
</strong></p>
          <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'modules/pbToppings.tpl', 'smarty_include_vars' => array('toppings' => $this->_tpl_vars['pizza']['meat_toppings'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        </div>
      </div>
      <div id="tabs-3">
        <div style="min-height:350px"> <a name="tabs-3"></a>
          <p><strong><?php echo $this->_tpl_vars['lang']['pizzabuilder_choose_bread']; ?>
</strong></p>
          <table width="100%" border="0" cellspacing="5" cellpadding="5">
            <?php $_from = $this->_tpl_vars['pizza']['base']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['base']):
?>
              <?php $this->assign('baseArray', ((is_array($_tmp=":")) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['base']) : explode($_tmp, $this->_tpl_vars['base']))); ?> 
              <?php $this->assign('baseName', $this->_tpl_vars['baseArray']['0']); ?>
              <?php $this->assign('basePrice', $this->_tpl_vars['baseArray']['1']); ?>
              <?php $this->assign('baseDefault', $this->_tpl_vars['baseArray']['2']); ?>
              <tr>
                <td width="200">            
                  <?php echo $this->_tpl_vars['baseName']; ?>
<?php if ($this->_tpl_vars['basePrice']['1'] != ""): ?><span style="color:green"> <em>(+<?php echo ((is_array($_tmp=$this->_tpl_vars['basePrice']['1'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>
)</em></span><?php endif; ?> 
                </td>
                <td style="text-align:center"><input class="calc" type="radio" name="base" value="<?php echo $this->_tpl_vars['base']; ?>
"  <?php echo $this->_tpl_vars['baseDefault']; ?>
 ></td>
              </tr>
            <?php endforeach; endif; unset($_from); ?> 
          </table>

          <p><strong><?php echo $this->_tpl_vars['lang']['pizzabuilder_choose_sauce']; ?>
</strong></p>
          <table width="100%" border="0" cellspacing="5" cellpadding="5">
            <?php $_from = $this->_tpl_vars['pizza']['sauce']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['sauce']):
?>
              <?php $this->assign('sauceArray', ((is_array($_tmp=":")) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['sauce']) : explode($_tmp, $this->_tpl_vars['sauce']))); ?> 
              <?php $this->assign('sauceName', $this->_tpl_vars['sauceArray']['0']); ?>
              <?php $this->assign('saucePrice', $this->_tpl_vars['sauceArray']['1']); ?>
              <?php $this->assign('sauceDefault', $this->_tpl_vars['sauceArray']['2']); ?>
              <tr>
                <td width="200">            
                  <?php echo $this->_tpl_vars['sauceName']; ?>
<?php if ($this->_tpl_vars['saucePrice']['1'] != ""): ?><span style="color:green"> <em>(+<?php echo ((is_array($_tmp=$this->_tpl_vars['saucePrice']['1'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>
)</em></span><?php endif; ?> 
                </td>
                <td style="text-align:center"><input class="calc" type="radio" name="sauce" value="<?php echo $this->_tpl_vars['sauce']; ?>
"  <?php echo $this->_tpl_vars['sauceDefault']; ?>
 ></td>
              </tr>
            <?php endforeach; endif; unset($_from); ?> 
          </table>
        </div>
      </div>
    </div>
  </div>
  <div class="pizza-sizes">
    <div>
      <label><?php echo $this->_tpl_vars['lang']['pizzabuilder_additional_instructions_message']; ?>
</label>
      <textarea name="instructions" style="width:340px;height:60px"></textarea>
    </div>
    <div style="text-align:right;font-size:1.2em;margin-top:25px;">
      <label><?php echo $this->_tpl_vars['lang']['pizzabuilder_total_per_pizza']; ?>
</label>
      <span id="pizza_price"><?php echo ((is_array($_tmp=$this->_tpl_vars['pizzas']['0']['price'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>
</span>
      <span class="button">
        <a href="" class="add-pizza"><?php echo $this->_tpl_vars['lang']['pizzabuilder_add_button']; ?>
</a>
      </span>
    </div>
  </div>
</form>